package com.hl.wuyeguanliIDEA.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class R {
    private int code;
    private String msg;
    private Object data;
    public static R ok(){
        return new R(200,"运行成功",null);
    }
    public static R success(Object data){
        return new R(200,"运行成功",data);
    }
    public static R fail(){
        return new R(500,"运行失败",null);
    }
}
